function y = g_psc1(x)
%  Generalized PSC1 Function
%x0=[3, 0.1, ..., 3, 0.1]  
%fmin=n/2
%Author:shi yangyang
n=length(x);
y=ones(1,n);
for i=1:1:n-1
    y(i)=(x(i)^2+x(i+1)^2+x(i)*x(i+1))^2+(sin(x(i)))^2+(cos(x(i+1)))^2;
end
y=sum(y);
